﻿using System.Collections.Generic;
using System.Threading.Tasks;
using ERP.Domain.Team.ProductionSystem;
using ERP.Application.Contracts.ERPSystem.ProductionSystem.Dto;
using Volo.Abp.Application.Services;

namespace ERP.Application.Contracts.ERPSystem.ProductionSystem
{
    /// <summary>
    /// 点检保养项目服务接口
    /// </summary>
    public interface ISpotCheckServices : IApplicationService
    {
        /// <summary>
        /// 新增点检保养项目
        /// </summary>
        /// <param name="spotchecksdto"></param>
        /// <returns></returns>
        Task<int> AddSpotChecks(SpotChecksDto spotchecksdto);

        /// <summary>
        /// 修改点检保养项目
        /// </summary>
        /// <param name="spotchecksdto"></param>
        /// <returns></returns>
        Task<int> UpdateSpotChecks(SpotChecksDto spotchecksdto);

        /// <summary>
        /// 查询点检保养项目
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<List<SpotChecks>> FindSpotChecks(int id);

        /// <summary>
        /// 删除点检保养项目
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeletedSpotChecks(int id);

        /// <summary>
        /// 获取点检保养项目列表
        /// </summary>
        /// <returns></returns>
        Task<List<SpotChecks>> GetSpotChecks(string? projectCode, string? projectName, int? projectType);

        /// <summary>
        /// 批量删除点检保养项目
        /// </summary>
        /// <param name="ids">要删除的ID列表</param>
        /// <returns>成功删除的数量</returns>
        Task<int> BatchDeleteSpotChecks(List<int> ids);
    }
}
